System.Collections.IList.Contains Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Determines if the list contains any item that compares equal to value.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
private bool IList.Contains(
	Object value
)
Visual Basic (Declaration)
Private Function System.Collections.IList.Contains ( _
	value As Object _
) As Boolean Implements IList.Contains
Visual C++
private:
virtual bool System.Collections.IList.Contains (
	Object^ value
) sealed = IList::Contains

Parameters

value
Object
The item to search for.

Remarks

Equality in the list is determined by the default sense of equality for T. If T implements IComparable<T>, the Equals method of that interface is used to determine equality. Otherwise, Object.Equals is used to determine equality.

See Also